﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Organization.Infrastructure.Migrations
{
    public partial class addSubcultivation : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Subcultivation",
                columns: table => new
                {
                    SubcultivationId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RaisedSheep = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    ShiftCottage = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    ShiftField = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    AtPresentCottage = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    AtPresentField = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Sex = table.Column<bool>(type: "bit", nullable: false),
                    TransplantingAge = table.Column<int>(type: "int", nullable: false),
                    ConversionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Subcultivation", x => x.SubcultivationId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Subcultivation");
        }
    }
}
